import { useApi } from '@/composables/useApi'

const ICONIFY_HTTP_PREFIX = 'https://api.iconify.design'

export interface IconSearchResult {
  icons: string[]
}

export const iconifyApi = {
  search: (keyword: string) => useApi<any, IconSearchResult>(`${ICONIFY_HTTP_PREFIX}/search`).get({ query: keyword }),

}
